FILL MEMORY

This command will fill an area of memory with a specified byte value.

  Syntax
FILL MEMORY Memory Address, FillByte, Size In Bytes
  Parameters
Memory Address
Dword
This value is a positive number between 0 and 4294967295.
FillByte
Boolean
This value is a positive number between 0 and 255.
Size In Bytes
Integer
This value is an integer number such as 1.

  Returns

This command does not return a value.

  Description

You can use this command in combination with the MAKE MEMORY command to clear previously created data. With care, you can also use this command to create wipe effects, clear the screen and initialise data structures. The size to clear is specified in bytes.

  Example Code
src as DWORD
src=MAKE MEMORY(1024)
FILL MEMORY src,1024,0
WAIT KEY
  See also

CORE Commands Menu
Index